<?php
require_once "config.php";
require_once "filter.php";
require_once "GoogleAPI.php";
require_once "FacebookAPI.php";
require_once "Connection.php";
session_start();

$facebookAPI = new FacebookAPI();
if(isset($_REQUEST['code'])){
  	$user = $facebookAPI->login();
}

if(isset($_SESSION['LOGIN_INFO']['id'])){
	/*
	$conn = new Connection();
	$categories = $conn->fetchCategory($_SESSION['LOGIN_INFO']['id']);
	$categories = urldecode($categories);
	$categories = json_decode($categories,true);
	$sub_category = $conn->fetchSubCategory($_SESSION['LOGIN_INFO']['id']);
	$sub_category = urldecode($sub_category);
	$sub_category = json_decode($sub_category,true);
	*/
}
//echo "<pre>";print_r($sub_category);echo "</pre>";
//echo urlencode('宅男教室之');//-綜合所得稅報稅三部曲');
//%E5%AE%85%E7%94%B7%E6%95%99%E5%AE%A4%E4%B9%8B-%E7%B6%9C%E5%90%88%E6%89%80%E5%BE%97%E7%A8%85%E5%A0%B1%E7%A8%85%E4%B8%89%E9%83%A8%E6%9B%B2
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-TW" lang="zh-TW">

<head>
  <title>ULikeWall - 好康分享</title>

  <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />  
  <meta name="keywords" content="ULikeWall 好康分享 " />
  <meta name="description" content="ULikeWall - 好康分享" />
  <meta property="og:title" content="ULikeWall - 好康分享"/>
  <meta property="og:url" content="www.ulikewall.com"/>
  <meta property="og:site_name" content="ULikeWall - 好康分享"/>
  <meta property="og:description" content="ULikeWall - 好康分享"/>
  
  <link rel="stylesheet" type="text/css" href="styles/css/html.css" media="screen, projection, tv " />
  <link rel="stylesheet" type="text/css" href="styles/css/layout.css" media="screen, projection, tv" />
  <link rel="stylesheet" type="text/css" href="styles/css/print.css" media="print" />
  <link rel="stylesheet" type="text/css" href="styles/css/jquery.fancybox-1.3.1.css"  />
  <script src="styles/js/jquery.js" type="text/javascript"></script>
  <script src="styles/js/ajax.js" type="text/javascript"></script>
  <script src="styles/js/ulikewall.js" type="text/javascript"></script>
  <script src="styles/js/jquery.fancybox-1.3.1.pack.js" type="text/javascript"></script>
  
</head>


<body>

<!-- CONTENT: Holds all site content except for the footer.  This is what causes the footer to stick to the bottom -->
<div id="content">
  <!-- HEADER: Holds title, subtitle and header images -->
  <div id="header">

    <div id="title">
    	<!--
      <h1>U Like Wall</h1>
      <h2>in the city</h2>
	  -->
    </div>

    <img src="styles/images/bg/balloons.gif" alt="balloons" class="balloons" />
    <img src="styles/images/bg/header_left.jpg" alt="left slice" class="left" />
    <img src="styles/images/bg/header_right.jpg" alt="right slice" class="right" />

  </div>



   <!-- MAIN MENU: Top horizontal menu of the site.  Use class="here" to turn the current page tab on -->
  <?php require_once "include/tags.php";?>


  <!-- PAGE CONTENT BEGINS: This is where you would define the columns (number, width and alignment) -->
  <div id="page">

    <div class="width25 floatLeft leftColumn">

      <!--<h1>Help</h1>-->

      <ul class="sideMenu">
		        <li class="here">
		          <span>生活小常識</span>
		          <ul style="display:block;" >
		          	<?php
					echo '<li><a href="share.php?c='.urlencode('生活小常識').'&t='.urlencode('宅男教室之-綜合所得稅報稅三部曲').'" title="宅男教室之-綜合所得稅報稅三部曲" >';
						echo '<span class="nowCategory">宅男教室之-綜合所得稅報稅三部曲</span>';
					echo '</a></li>';
					?>
		          </ul>
		        </li>
		<!--
        <li><a href="http://fullahead.org" title="Goto Fullahead">Fullahead</a></li>
        <li><a href="http://threetree.net" title="Goto Threetree">ThreeTree</a></li>
		-->
      </ul>

	<!--
      <p>
        If you still have questions after reading this, feel free to <a href="http://fullahead.org/contact.html" title="Fullahead contact form">contact me</a>.  I can't promise I'll answer you right away, but I will get back to you.
      </p>
	-->
	</div>
    <div class="width75 floatRight">
      <div class="main_info">
      	<?php include "files/html/宅男教室之-綜合所得稅報稅三部曲.html"?>
      </div>
    </div>

  </div>

</div>


<!-- FOOTER: Site footer for links, copyright, etc. -->
<div id="footer">

  <div id="width">
  	copyright &copy; ULikeWall
	<!--
    <span class="floatLeft">
    	
      design <a href="http://fullahead.org" title="Goto Fullahead">Fullahead</a> <span class="grey">|</span>
      valid <a href="http://validator.w3.org/check?uri=referer" title="Validate XHTML">XHTML</a> <span class="grey">|</span>
      should be valid <a href="http://jigsaw.w3.org/css-validator" title="Validate CSS">CSS</a>
	 
	  
    </span>

    <span class="floatRight">
      <a href="index.html" title="Introduction">intro</a> <span class="grey">|</span>
      <a href="help.html" title="Learn how to use the template">help</a> <span class="grey">|</span>
      <a href="tags.html" title="View the styled tags">tags</a> <span class="grey">|</span>
      <a href="print.html" title="View the print layout">print</a> <span class="grey">|</span>
      <a href="http://fullahead.org/contact.html" title="Get in touch">mail</a>
    </span>
	-->
  </div>

</div>

</body>

</html>